@charset "UTF-8";
/* CSS para Jardí Botànic */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Times New Roman", serif;
    background-color: #f3e6d8;
    color: #5a3a2e;
}

.titulo-historia {
    font-family: 'Snell Roundhand', cursive !important;
    color: #754127 !important;
    font-size: 2.5rem !important;     
    text-align: center;
    margin: 0; 
}

.intro {
    margin: 20px auto; /* esto controla distancia desde arriba */
    padding: 20px;
}  

/* HERO */
.hero {
    position: relative;
	
}

.hero img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.hero-logo {
    position: absolute;
    top: 35%; /* Ajusta según quieras */
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #e7b8a2;
    padding: 30px 60px;
    border-radius: 100px;
    text-align: center;
}

.hero-logo-oval {
  position: absolute;
  top: 50%; /* ya lo tienes */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 200px;
  background-color: #e7b8a2;
  border-radius: 50%;
  display: flex;
  align-items: center;   /* centrado vertical */
  justify-content: center; /* centrado horizontal */
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.hero-logo-oval img {
    max-width: 130%;
    max-height: 130%;
}

/* NAV */
nav {
    background-color: #b9945d; /* amarillo mostaza boho */
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav ul li a {
    color: #f9ecde; /* color crema */
    text-decoration: none;
    padding: 18px 25px;
    display: block;
    font-weight: bold;
    font-size: 1.2rem; /* tamaño más grande */
    font-family: "Snell Roundhand", cursive, serif;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #a8804c; /* mostaza más oscuro al pasar mouse */
    color: #fffbe6;
}

/* MAIN */
main {
     padding: 20px 40px;
}

.primer-bloque-fondo {
    background-image: url('img/3 pb img fons.jpeg');
    background-size: cover;
    background-position: center;
    padding: 50px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* texto a la izquierda */
}

.primer-bloque-texto {
      width: 100%; /* ocupa todo el ancho disponible */
    max-width: 900px;
}

.primer-bloque-texto h2 {
    font-family: "Times New Roman", serif;
    color: #fff5e9;
    font-size: 3rem;
    margin-bottom: 20px;
}

.rectangulo-texto {
    background-color: #fff5e9;
    color: #5a3a2e;
    padding: 25px 30px;
    border-radius: 8px;
    font-family: "Times New Roman", serif;
    font-size: 1.1rem;
    line-height: 1.6;
	margin: 0 auto; 
    width: 100%; 
    box-sizing: border-box; 
}

.segon-bloque-fondo {
    background-color: #bb7b55; /* fondo marrón/naranja */
    padding: 50px 40px; /* misma altura que primer bloque */
    display: flex;
    align-items: center; /* centra verticalmente */
    justify-content: center; /* centra horizontalmente */
}

.segon-bloque-texto {
    width: 100%;
    max-width: 900px; /* igual que el primer bloque */
    text-align: center; /* centra el texto */
}

.segon-bloque-texto h2 {
    font-family: "Times New Roman", serif;
    color: #fffbe6; 
    font-size: 3rem;
    margin-bottom: 20px;
	text-align: left;
}

.segon-bloque-texto .rectangulo-texto {
    margin: 0 auto;
    width: 100%;
    background-color: #fff5e9; /* mismo estilo que el primer bloque */
    color: #5a3a2e;
    padding: 25px 30px;
    border-radius: 8px;
    font-family: "Times New Roman", serif;
    font-size: 1.1rem;
    line-height: 1.6;
}

.carrusel-horizontal {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
}

.carrusel-horizontal .prev,
.carrusel-horizontal .next {
  position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #754127;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 5px;
    z-index: 10;
}

.carrusel-horizontal .prev { left: -40px; }
.carrusel-horizontal .next { right: -40px; }

.carrusel-track-container {
    overflow: hidden;
    width: 100%;
}

.carrusel-track {
    display: flex; /* horizontal */
    flex-direction: row; /* fila */
    transition: transform 0.5s ease;
}

.carrusel-item {
    width: 220px; /* ancho más estrecho */
    margin-right: 10px; /* menos espacio entre rectángulos */
    background-color: #fff5e9;
    color: #5a3a2e;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.carrusel-item img {
    max-height: 120px;
    width: auto;
    margin-bottom: 10px;
    border-radius: 5px;
}

.carrusel-item p {
    font-family: "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

/* Sección destacada con imagen de fondo */
.destacat {
    background-image: url("img/1 index img 3.jpg.webp");
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
	width: 100%; /* ocupa todo ancho pantalla */
    height: 500px; /* altura más grande */
    display: flex; /* para centrar texto dentro */
    align-items: center;
    justify-content: center;
}

.destacat p {
 background-color: rgba(201, 124, 79, 0.85); /* transparente para destacar texto */
    color: white;
    padding: 20px 40px;
    display: inline-block;
    border-radius: 5px;
    font-size: 1.3rem; /* un poco más grande */
}

/* FOOTER */
footer {
    background-color: #cfa37e;
    padding: 60px 20px;
    text-align: center;
	color: white;
}

/* Contenedor logos */
.footer-logos {
    display: flex;
	justify-content: center;
    align-items: center;
    gap: 60px; /* espacio entre logos */
    margin-bottom: 40px;
}

/* Tamaño logos */
.footer-logos img {
    height: 70px; /* Ajusta si los quieres más grandes */
    width: auto;
}

/* Logo Ajuntament y Generalitat (más pequeños e iguales) */
.footer-logos img:nth-child(2),
.footer-logos img:nth-child(3) {
    height: 65px;
}

/* Logo Jardines simplificado (MUCHO más grande) */
.footer-logos img:first-child {
    height: 140px;
}

/* Contenedor cajas */
.footer-boxes {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
	flex-wrap: wrap; /* para que no se rompa en pantallas pequeñas */
}

/* Estilo cajas */
.footer-box {
    background-color: #b9945d;
    color: #f9ecde;
    padding: 20px 40px;
    font-family: "Snell Roundhand", cursive, serif;
    font-size: 1.3rem;
    border-radius: 6px;
}

/* Copyright */
.footer-copy {
    margin-top: 15px;
    font-size: 0.9rem;
}
	